#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
static unsigned int index = 0;

typedef unsigned long long int HEX;
void tenToTwo(const unsigned long long int x, bool[]);
int main(int argc, char *argv [])
{
    HEX number = 0;
    bool array[500];
    tenToTwo(255, array);
    for (unsigned int x = 0; x < index; x++)
        printf("%hhd", array[x]);
    

    getchar();
    return 0;
}

void tenToTwo(const unsigned long long int x, bool array[])
{
    bool number = (x % 2);
    unsigned long long int size = (x / 2);
    if (size != 0)
    {
        tenToTwo(size, array);
    }
    array[index++] = number;
}